﻿using SqlSugar;
using System.ComponentModel.DataAnnotations;

namespace MaterialManagement.Domain.ERP
{
    public class MaterialInfoModel
    {
        /// <summary>
        /// 物料主键
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        [Key]
        public int MaterialId {  get; set; }
        /// <summary>
        /// 物料编号
        /// </summary>
        public string MaterialCode {  get; set; }
        /// <summary>
        /// 物料名称
        /// </summary>
        public string MaterialName { get; set; }
        /// <summary>
        /// 单位
        /// </summary>
        public string Unit {  get; set; }
        /// <summary>
        /// 规格型号
        /// </summary>
        public string Specification { get; set; }
        /// <summary>
        /// 物料属性
        /// </summary>
        public bool Attribute {  get; set; }
        /// <summary>
        /// 库存上限
        /// </summary>
        public int Inventorylimit {  get; set; }
        /// <summary>
        /// 库存下限
        /// </summary>
        public int Inventorylevel {  get; set; }
        /// <summary>
        /// 当前库存
        /// </summary>
        public int CurrentInventory {  get; set; }
        /// <summary>
        /// 仓库编号
        /// </summary>
        public string WarehouseCode {  get; set; } = string.Empty;
        /// <summary>
        /// 采购价格
        /// </summary>
        public decimal PurchasePrice {  get; set; }
        /// <summary>
        /// 有效期
        /// </summary>
        public int PeriodOfValidity {  get; set; }
        /// <summary>
        /// 物料状态
        /// </summary>
        public bool MaterialState {  get; set; }
        /// <summary>
        /// 逻辑删除
        /// </summary>
        public bool IsDel {  get; set; }
    }
}
